-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: using multiple CLI::color() in CLI::write() outputs strings with wrong color #5893
Conversation
…s that shouldn't be affected
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is this a breaking change?
system/CLI/CLI.php
Outdated
if ($text === '') { | ||
return $text; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can combine this with the first if
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
system/CLI/CLI.php
Outdated
} | ||
|
||
return $string . $text . "\033[0m"; | ||
return $string . ($text . "\033[0m"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the need for parenthesis?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems rector added.
Removed.
I added docs. |
@paulbalandan Thank you! |
Description
Fixes #5892
Checklist: